<script type="text/javascript" src="/javascripts/jquery.lightbox-0.5.js"></script>
<link rel="stylesheet" type="text/css" href="/stylesheets/lightbox.css" />
<div class="content pro_attrs">
  <div id="attribute">
    <ul>
      <li><a href="#des">产品介绍</a></li>
      <li><a href="#guige">规格参数</a></li>
      <li><a href="#qingdan">包装清单</a></li>
    </ul>
    <div id="des" class="des">
      <%=dis_pro_value.pro_content ? dis_pro_value.pro_content.content : "" %>
    </div>
    <div id="guige" class="des">
      <dl>
        <% get_attributes_by_id(dis_pro_value.id).each do |gname,gitems| -%>
          <dt><%=gitems[0].des %></dt>
          <% gitems.each do |item| -%>
            <dd><label class="l"><%=item.display_name %>：</label><label class="r"><%=get_value_by_item(item) %></label></dd>
          <% end -%>
        <% end -%>
      </dl>
    </div>
    <div id="qingdan" class="des">
      <%=dis_pro_value.pro_content ? dis_pro_value.pro_content.package : "" %>
    </div>
  </div>
</div>
<div class="content">
  <div class="box box-h14">
    <span class="top_bg"><span></span></span>
    <div class="head"><h3>售后服务</h3></div>
    <div class="con">
      <%=dis_pro_value.pro_content ? dis_pro_value.pro_content.service : "" %>
    </div>
    <span class="bot_bg">
      <span></span>
    </span>
  </div>
</div>
<script type="text/javascript">
  $(document).ready(function(){
    $("#attribute").tabs({selected:1});
    $('.pro_imgs a').lightBox();

  });

</script>